<template>
<div class="io">
  <ul>
   <Az v-for="(v,i) in arr" :key="i" :title="v.title" :imgfirst="v.imgfirst" :nowprice="v.nowprice" :flowerId="v.flowerId"/>
  </ul>
</div>
  
</template>

<script>
import Az from "c/flower/erazi.vue"
import {getlink} from "a/getapi.js"
export default {
   components:{
    Az
  },
  data(){
    return {
      arr:[
        
      ]
    }
  },
 mounted(){
         getlink("/demo/data").then((ok)=>{
            this.arr=ok.data.typeflower
            console.log(ok)

        })
    },
}
</script>

<style scoped>
.io{
  padding: 0.2rem 0.18rem 0.1rem;
}
ul{
  overflow: hidden;
}
</style>